Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix getting float render target extensions #21069

Merged
merged 2 commits into from
Jan 12, 2021

Conversation

Oletus
Copy link
Contributor

@Oletus Oletus commented Jan 12, 2021

WebGLRenderer now requests all the different floating point render target extensions from the GL context. On WebGL 2, float render targets are enabled by EXT_color_buffer_float, and EXT_color_buffer_half_float may provide half float render target support on both WebGL 1 and WebGL 2.

This contribution is funded by Higharc.

Different extensions may be required to enable rendering to floating point textures depending on WebGL version and implementation.
EXT_color_buffer_half_float may be supported on WebGL 2 on platforms that support 16-bit float render targets but not 32-bit float render targets.
@mrdoob mrdoob added this to the r125 milestone Jan 12, 2021
@mrdoob mrdoob merged commit 1dd95a4 into mrdoob:dev Jan 12, 2021
@mrdoob
Copy link
Owner

mrdoob commented Jan 12, 2021

Thanks!

@Oletus Oletus deleted the get-float-extensions-fix branch January 12, 2021 17:21
@mrdoob
Copy link
Owner

mrdoob commented Jan 12, 2021

I always get this warning now:

Screen Shot 2021-01-12 at 5 31 32 PM

Is that expected?

@Oletus
Copy link
Contributor Author

Oletus commented Jan 12, 2021

Yes, I think Chrome warns whenever an unsupported extension is requested. We could potentially use getSupportedExtensions to query extensions before calling getExtension to silence these warnings, if that's desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants